
package com.huaweicloud.saaslanding.install.properties;

import static com.huaweicloud.saaslanding.install.constant.ModelConstant.INGRESS_PREFIX;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import jakarta.validation.constraints.NotNull;

/**
 * 功能描述
 *
 * @since 2022-12-20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@Validated
@ConfigurationProperties(prefix = INGRESS_PREFIX)
public class Ingress {

    @NotNull(message = "ingress port(ingress.port)不能为空")
    private Integer port;

    @NotNull(message = "ingress nodePort(ingress.nodePort)不能为空")
    private Integer nodePort;

}
